package com.epam.mainmenu;

import java.util.ArrayList;
import java.util.List;

import com.epam.menu.*;
import com.epam.submenu.*;

public class CreateNecklace extends MenuItem {
	private final Menu subMenu; 
	
	public CreateNecklace() {
		super("Create necklace","1");
		List<MenuItem> items = new ArrayList<MenuItem>();
		items.add(new Gems());
		items.add(new Stones());
		items.add(new MainMenu());
		subMenu = new Menu(items);
	}

	@Override
	public boolean execute(){
		System.out.println("Create comand");
		subMenu.run();
		return true;
	}

}
